#include <catch2/catch.hpp>

#include "solution.hpp"

TEST_CASE("268_missing_number", "[268]") {
    CHECK(Solution().missingNumber({3,0,1})             == 2);
    CHECK(Solution().missingNumber({0,1})               == 2);
    CHECK(Solution().missingNumber({9,6,4,2,3,5,7,0,1}) == 8);
    CHECK(Solution().missingNumber({0})                 == 1);
}
